package com.joe.springboot.service.impl;

import com.joe.springboot.dmo.User;
import com.joe.springboot.exception.ResponseEnum;
import com.joe.springboot.service.HomeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service("homeService")
public class HomeServiceImpl extends ParentServiceImpl implements HomeService {
    private static final Logger logger = LoggerFactory.getLogger(HomeServiceImpl.class);

    @Override
    public User queryUser(String id, User user) {
        if (logger.isDebugEnabled()) {
            logger.debug("start-HomeServiceImpl.queryUser(id = {}, user = {})", id, user);
        }
        ResponseEnum.OBJ_NOT_NULL.assertNotNull(user.getName());
        return user;
    }


}
